package com.example.dubbo.provider;


import com.example.dubbo.api.ReturnObjService;
import com.example.dubbo.dto.Result;
import org.apache.dubbo.rpc.RpcContext;

public class ReturnStringServiceImpl implements ReturnObjService {

    @Override
    public Result<String> sendMessage(String name) {
        System.out.println("return " + name + ", request from consumer: " + RpcContext.getContext().getRemoteAddress());
        return Result.success("hello " + name);
    }
}
